﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using HumanResorcesProj.BLL;
using System.Web.UI.WebControls;

namespace HumanResorcesProj.GUI.Extensions
{
    public partial class FeedBackNew : System.Web.UI.Page
    {

        conv conv = new conv();
        protected void Page_Load(object sender, EventArgs e)
        {
            //EmpNameTextBox.Text = worker.GetName(DetailWorker1Gui.EmpCurrentID)[0][0].ToString();

            EmpNameTextBox.Text = SearchEmplyee.Curr.CurrEmpName + " " + SearchEmplyee.Curr.CurrEmpLastName;
            EmpIDtEXbOX.Text = SearchEmplyee.Curr.CurrEmpID;


        }

        protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            ConvDateTextBox.Text = Calendar1.SelectedDate.ToShortDateString();
        }

        protected void SaveCovButton_Click(object sender, EventArgs e)
        {
            string EmpID = EmpIDtEXbOX.Text;
            string InitiatorName = InitiatorNameTextBox.Text;
            string ConvDate = ConvDateTextBox.Text;
            string ConvLocation = ConvLocationTextBox.Text;
            string PresentInDiscussion = PresentInDiscussionTextBox.Text;
            string ConversationContext = ConversationContextTextBox1.Text;
            string ConvSummary = ConvSummaryTextBox.Text;

            conv.insertConv(EmpID, InitiatorName, ConvDate, ConvLocation, PresentInDiscussion, ConversationContext, ConvSummary);
        }

    }
}
